package edu.neusoft.springhtmldemo.controller;

import edu.neusoft.springhtmldemo.domain.DeviceWorkingLog;
import edu.neusoft.springhtmldemo.service.DeviceWorkingLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeviceWorkingLogController {
    @Autowired
    private DeviceWorkingLogService service;
    @RequestMapping("deviceWorkingShow")
    public DeviceWorkingLog deviceWorkingShow(){
        DeviceWorkingLog workingLog=service.showAll();
//        System.out.println(workingLog);
        return workingLog;
    }
}
